import http from '../index'

import type { LoginType, ResLoginType } from '../interface'

export const login = async (data: LoginType) => {
  return await http<ResLoginType>({
    url: '/login',
    method: 'POST',
    data,
  })
}
